package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CartController {

    @RequestMapping("/v1/cart/add")
    @ResponseBody
    public String add(){
        return "添加成功";
    }

    @RequestMapping("/v1/cart/list")
    @ResponseBody
    public String list(){
        return "查看成功";
    }
}
